package nlpeap.io;

import java.io.File;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;

/**
 * The io operating about the XML files
 * @author chuter
 *
 */
public class XMl {
	private XMl() {}
	
	/** load the xml file */
	public static Document loadXmlFile(String filepath) throws DocumentException {
		SAXReader reader = new SAXReader();
		Document document = reader.read(new File(filepath));
		return document;
	}
}
